//
//  ParsingModel.m
//  CloudTest
//
//  Created by 张帅 on 2020/7/23.
//  Copyright © 2020 张帅. All rights reserved.
//

#import "ParsingModel.h"

@implementation ParsingModel
//是否可以解析
-(BOOL)is_parsing {
    if (self.code == 200) {
        return YES;
    }
    if (self.code == 401) {
        return YES;
    }
    if (self.data == nil) {
        return NO;
    }
    if (self.data || [self.data isKindOfClass:[NSDictionary class]] || [self.self isKindOfClass:[NSArray class]]) {
        return YES;
    }
    return NO;
}
@end
